<?php
namespace app\en\model;

class Articles extends Bass{
    // 确定链接表名
    protected $name = 'articles';

    /**
     * 查询项目
     * @param $where
     */
    public function getArticlesByWhere($where)
    {
        return $this->where($where)->order('id desc')->select();
    }
}